package net.xuele.learn.queue;

import cn.hutool.core.collection.CollectionUtil;
import cn.hutool.http.HttpRequest;
import cn.hutool.http.HttpUtil;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.google.common.collect.Lists;
import org.junit.Test;

import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.LinkedTransferQueue;

/**
 * @Author patrick
 * @Date 2022/7/18 11:29
 * @Description
 */
public class QueueTester {


    @Test
    public void testTransfer() throws InterruptedException {
        LinkedTransferQueue<String> queue = new LinkedTransferQueue<>();
//        new Thread(() ->{
//            try {
//                System.out.println(queue.take());
//            } catch (InterruptedException e) {
//                e.printStackTrace();
//            }
//        }).start();
//        Thread.sleep(10000);
        queue.transfer("123");
    }


    @Test
    public void test1() {
        Map<String, Object> map = new HashMap<>();
    }
}
